package com.cherrish.feign;

import com.cherrish.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
/**
 * @author cherrish
 * @time 2018-09-04 15:33
 * @name SpringUtil
 * @desc:
 */
@FeignClient(value = "open-user-center", configuration = FeignConfig.class)
public interface UserClient {

    @GetMapping("/users/current")
    Object currentUser();

    @GetMapping("/users/internal")
    Object findByUsername(@RequestParam("username") String username);


}
